package com.ruoyi.admin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实验室维修对象 t_repair
 * 
 * @author lin
 * @date 2024-04-20
 */
public class Repair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修表唯一id
 */
    private Long repairId;

    /** 教师id */
    @Excel(name = "教师id")
    private Long teacherId;

    /** 实验室id */
    @Excel(name = "实验室id")
    private Long labId;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String description;

    /** 报修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    /** 报修状态，0-已维修，1-未维修，2-维修中 */
    @Excel(name = "报修状态，0-已维修，1-未维修，2-维修中")
    private String status;

    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setLabId(Long labId) 
    {
        this.labId = labId;
    }

    public Long getLabId() 
    {
        return labId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setReportDate(Date reportDate) 
    {
        this.reportDate = reportDate;
    }

    public Date getReportDate() 
    {
        return reportDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairId", getRepairId())
            .append("teacherId", getTeacherId())
            .append("labId", getLabId())
            .append("description", getDescription())
            .append("reportDate", getReportDate())
            .append("status", getStatus())
            .toString();
    }
}
